package NGUYENTHECUONG_DEMO;

public class StudentViews {
	public static void main(String[] agrs){
		//1. khai bao va khoi tao
		// su dung Get de lay thong tin
		
		Student sv01 =new Student();
		Student sv02 = new Student();
		Student sv03 = new Student(100, "Nguyen Van A", 8.5);
		Student sv04 =new Student(200, "Nguyen Van B", 9.5);
		
		System.out.println("SV01 : ");
		System.out.println("RollNo :"+sv01.getRollNo());
		System.out.println("FullName: "+sv01.getFullName());
		System.out.println("Mark :" +sv01.getMark());
		
		System.out.println("SV02 : ");
		System.out.println("RollNo :"+sv02.getRollNo());
		System.out.println("FullName: "+sv02.getFullName());
		System.out.println("Mark :" +sv02.getMark());
		
		System.out.println("SV03 : ");
		System.out.println("RollNo :"+sv03.getRollNo());
		System.out.println("FullName: "+sv03.getFullName());
		System.out.println("Mark :" +sv03.getMark());
		
		System.out.println("SV04 : ");
		System.out.println("RollNo :"+sv04.getRollNo());
		System.out.println("FullName: "+sv04.getFullName());
		System.out.println("Mark :" +sv04.getMark());
		
		// su dung Set de lay thong tin cho doi tuong
		sv01.setRollNo(300);
		sv01.setFullName("Nguyen Van C");
		sv01.setMark(10);
		System.out.println("SV01 : ");
		System.out.println("RollNo :"+sv01.getRollNo());
		System.out.println("FullName: "+sv01.getFullName());
		System.out.println("Mark :" +sv01.getMark());
		
		//4. Phuong thuc the hien hanh vi cho doi tuong
		
		System.out.println("SV01 :");
		System.out.println(sv01.Dihoc());
		System.out.println(sv01.TocDoDi());
	}

}
